import 'package:rfid/generated/json/base/json_field.dart';
import 'package:rfid/generated/json/lock_state_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class LockStateEntity {

	String? addr;
	String? count;
	List<LockStateList>? list;
  
  LockStateEntity();

  factory LockStateEntity.fromJson(Map<String, dynamic> json) => $LockStateEntityFromJson(json);

  Map<String, dynamic> toJson() => $LockStateEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class LockStateList {

	int? addr;
	int? no;
	int? state;
  
  LockStateList();

  factory LockStateList.fromJson(Map<String, dynamic> json) => $LockStateListFromJson(json);

  Map<String, dynamic> toJson() => $LockStateListToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}